Fix a problem with focus handling in modal popovers
authorMatthias Clasen <mclasen@redhat.com>
Fri, 11 Aug 2017 16:03:54 +0000 (12:03 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 12 Aug 2017 22:48:14 +0000 (18:48 -0400)
commit46f7804f3aac1e4007a93e6247d1587705e56e90
tree11dd6d5e3db1c062dc424b5e48ef419aa731afa9
parentc6c1619646ce62a87a89d54c037c2168e0d9d0d3
Fix a problem with focus handling in modal popovers

When the popover is dismissed, we return the focus to
where it came from. However, by using gtk_widget_grab_focus,
we were messing up the selection if that widget happens to
be an entry. Special-case GtkEntry and use
gtk_entry_grab_focus_without_selecting to avoid this issue.
gtk/gtkpopover.c